#include "servermultithread.h"

ServerMultithread::ServerMultithread(Service *service, int waitForAnswer)
{
    this->service = service;
    this->waitForAnswer = waitForAnswer;
}

void ServerMultithread::incomingConnection(int handle)
{

    ServerThread *serverThread = new ServerThread(handle, service, waitForAnswer);
    QThreadPool::globalInstance()->start(serverThread);
}
